// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from '@/utils/request'

// 首页数据概览
export function viewModelApi() {
  return request({
    url: '/getBehindCensus',
    method: 'GET',
  })
}
// 首页部分数据概览
export function getUserCensusApi() {
  return request({
    url: '/getUserCensus',
    method: 'GET',
  })
}
export function selectNoGreenLightListApi() {
  return request({
    url: '/selectNoGreenLightList',
    method: 'GET',
  })
}
export function industryStatisticsApi() {
  return request({
    url: '/industryStatistics',
    method: 'GET',
  })
}
// 首页投诉类型
export function qetBehindPieApi() {
  return request({
    url: '/getBehindPie',
    method: 'GET',
  })
}
// 用户概览
export function getBehindTriangleCensus() {
  return request({
    url: '/home/getBehindTriangleCensus',
    method: 'get'
  })
}

// 用户统计
export function chartUserApi() {
  return request({
    url: '/home/getBehindUserCensus',
    method: 'get'
  })
}

// 随手拍各类型投诉量统计
export function chartOrder30Api(data) {
  return request({
    url: '/home/getBehindFormCensus',
    method: 'get',
    params: data
  })
}
// 随手拍各类型投诉量统计
export function chartOrderCensus(data) {
  return request({
    url: '/home/getBehindFormStatusCensus',
    method: 'get',
    params: data
  })
}
